#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void Test1()
{
    vector<int> v = {0, 1, 0, 3, 12};
    vector<int> tv = {1, 3, 12, 0, 0};
    Solution().moveZeroes(v);
    if (v.size() != 5)
    {
        std::cout << "Test 1 .... filed" << std::endl;
        std::cout << "结果为" << std::endl;
        for (auto e : v)
        {
            std::cout << e << " ";
        }
        std::cout << std::endl;
        return;
    }
    for (int i = 0; i < 5; i++)
    {
        if (v[i] != tv[i])
        {
            std::cout << "Test 1 .... filed" << std::endl;
            std::cout << "结果为" << std::endl;
            for (auto e : v)
            {
                std::cout << e << " ";
            }
            std::cout << std::endl;
            return;
        }
    }
    std::cout<<"Test 1 .... OK"<<std::endl;
    return;
}

void Test2()
{
    vector<int> v = {0};
    Solution().moveZeroes(v);
    if (v.size() != 1)
    {
        std::cout << "Test 2 .... filed" << std::endl;
        std::cout << "结果为" << std::endl;
        for (auto e : v)
        {
            std::cout << e << " ";
        }
        std::cout << std::endl;
        return;
    }
    if(v[0]!=0)
    {
        std::cout << "Test 2 .... filed" << std::endl;
        std::cout << "结果为" << std::endl;
        for (auto e : v)
        {
            std::cout << e << " ";
        }
        std::cout << std::endl;
        return;
    }
    std::cout<<"Test 2 .... OK"<<std::endl;
}

int main()
{
    Test1();
    Test2();

    return 0;
}